// 课程接口
import request from '@/utils/request';

// 按照班级id获取课程列表
export const getClassCourseListByClassId = (classId) => {
    return request({
        url: '/eduM2/class-course/getClassCourseList/' + classId,
        method: 'get'
    })
}

// 班级添加课程
export const addClassCourse = (params) => {
    return request({
        url: '/eduM2/class-course/testAddCourseByClassId',
        method: 'post',
        data: params
    })
}

// 班级删除课程
export const deleteClassCourse = (params) => {
    return request({
        url: '/eduM2/class-course/testDeleteCourseByClassId',
        method: 'post',
        data: params
    })
}